Global Index
HTML5 JS API Index > WebRTC Tutorials & Specs

RTCDataChannelInit

This type represents a collection of object properties and does not have an explicit JavaScript representation.

Properties
unsigned short
id
Overrides the default selection of id for this channel.
unsigned short
maxRetransmits
Limits the number of times a channel will retransmit data if not successfully delivered. This value may be clamped if it exceeds the maximum value supported by the user agent..
unsigned short
maxRetransmitTime
Limits the time during which the channel will retransmit data if not successfully delivered. This value may be clamped if it exceeds the maximum value supported by the user agent.
boolean
negotiated = false
The default value of false tells the user agent to announce the channel in-band and instruct the other peer to dispatch a corresponding RTCDataChannel object. If set to true, it is up to the application to negotiate the channel and create a RTCDataChannel object with the same id at the other peer.
boolean
ordered = true
If set to false, data is allowed to be delivered out of order. The default value of true, guarantees that data will be delivered in order.
DOMString
protocol =
Subprotocol name used for this channel.
Referenced by
RTCPeerConnectioncreateDataChannel(...)